{extend name='public/layer_base' /}
{block name='content'}
<div class="layui-fluid content">
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="layui-row">

                <!-- Custom Tabs -->
                <div class="layui-tab">
                    <ul class="layui-tab-title">
                        {foreach name='data_config' id='item'}
                        <li {if $key==0}class="layui-this" {/if}>{$item.name}
                        </li>
                        {/foreach}
                    </ul>
                    <div class="layui-tab-content">
                        {foreach name='data_config' id='item'}
                        <div class="layui-tab-item  {if $key==0}layui-show{/if}">
                            <form class="layui-form"  action="{:url('setting/update')}" method="post"
                                enctype="multipart/form-data">
                                <div class="box-body">
                                    <input name="id" value="{$item.id}" hidden>

                                    {foreach name='item.content' id='data' key='kk'}
                                    {$data.form|raw}
                                    {/foreach}

                                </div>

                                <div class="layui-form-item">
                                    <label for="L_repass" class="layui-form-label"></label>
                                {:token_field()}

                                    <button class="layui-btn" lay-filter="submit" id="submit" lay-submit="submit"
                                        type="button">保存</button>
                                </div>

                            </form>

                        </div>
                        {/foreach}

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



{/block}